home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / pgpuam / sources / pgpuamclientlogindialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.4 KB  |  47 lines

  1. /*
  2.     File:            PGPUAMclientLoginDialog.h
  3.  
  4.     Description:    Handles the PGPlogin Username Dialog
  5.  
  6.     Written by:    Vinnie Moscaritolo
  7.  
  8.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.     You may incorporate this sample code into your applications without
  13.     restriction, though the sample code has been provided "AS IS" and the
  14.     responsibility for its operation is 100% yours.  However, what you are
  15.     not permitted to do is to redistribute the source as "DSC Sample Code"
  16.     after having made changes. If you're going to re-distribute the source,
  17.     we require that you make it clear in the source that the code was
  18.     descended from Apple Sample Code, but that you've made changes.
  19. */
  20.  
  21. #include "TASIPPGPkey.h"
  22. #include "TPGPUAMPrefs.h"
  23.  
  24.  
  25.  
  26. typedef void (*IdleConnectionProcPtr)();
  27.  
  28. typedef OSStatus (*LoginStartConnectionProcPtr) (     StringPtr    userName,
  29.                                                     StringPtr    serverName, 
  30.                                                   short       *sessionRefNum,
  31.                                                   TPGPUAMPrefs *userPrefs,
  32.                                                  TASIPPGPkey    *serverKey,
  33.                                      IdleConnectionProcPtr    idleProc,
  34.                                                  void         *context);
  35.                                                  
  36. typedef void (*CancelConnectionProcPtr)    (void  *context);
  37.  
  38.  
  39. OSErr DoLoginDialog( StringPtr userName,
  40.                      StringPtr serverName, 
  41.                      short       *sessionRefNum,
  42.                      TPGPUAMPrefs*    userPrefs,
  43.                       LoginStartConnectionProcPtr startProc, 
  44.                       CancelConnectionProcPtr     cancelProc,
  45.                       UniversalProcPtr            eventProcUPP,
  46.                       void                      *context ) ;
  47.